package lession4.PartA_Grammar


fun main(){
    var kClass=KReflect::class
    var jClass1=KReflect::class.java
    var jClass2  =KReflect::javaClass //作为属性出现

    println("kClass=${kClass.simpleName} jClass=${jClass1.getSimpleName()} jClass2=${jClass2.name}")
    println("kClass equals jClass1=${kClass.equals(jClass1)}")
    println("kClass equals jClass2=${kClass.equals(jClass2)}")
    println("jClass1 equals jClass2=${jClass1.equals(jClass2)}")
}

class KReflect {


}

fun testPreference(){
    val strs = listOf("a", "bc", "def")
    println(strs.map(String::length))
}